package com.egdd.video.mapper;

import com.egdd.video.pojo.Albums;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface AlbumsMapper {


    int deleteByPrimaryKey(Integer id);

    int insert(Albums record);

    int insertSelective(Albums record);


    Albums selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Albums record);

    int updateByPrimaryKey(Albums record);

    /**
     * 根据分类id查询视频集合
     * @param categoryId 分类id
     * @return list<Albums>
     */
    List<Albums> getAlbumsByCategoryId(Integer categoryId);

    /**
     * 查询所有视频集合
     * @return list
     */
    List<Albums> getAll();
}
